package com.itheima.neibulei;

public class 函数式编程 {
    public static void main(String[] args) {
        Method md = (String name) -> {
            System.out.println("函数式编程" + name);
        };
        md.show("hello world.......");

        swim((String name) -> {
            System.out.println("函数式编程" + name);
        },"hello.............");


    }


    public static void swim(Method method, String name) {
        method.show(name);
    }
}

interface Method {
    void show(String name);
}